import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:fortune/page/Home.dart';
import 'package:fortune/page/MyPet.dart';
import 'package:fortune/page/PurchaseRecords.dart';
import 'package:fortune/page/Splash.dart';
import 'package:fortune/page/Test.dart';
import 'package:fortune/page/getPet.dart';
import 'package:fortune/page/getPetForFree.dart';

void main() {
  runApp(const MyApp());
  SystemChrome.setSystemUIOverlayStyle(const SystemUiOverlayStyle(
      statusBarColor: Colors.transparent,
      statusBarIconBrightness: Brightness.light));
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      initialRoute: "splash",
      routes: {
        "splash": (context) => Splash(),
        "home": (context) => Home(),
        "mypet": (context) => MyPet(),
        "purchaserecord": (context) => PurchaseRecords(),
        "getpetforfree": (context) => getPetForFree(),
        "getpet": (context) => getPet(),
        "test": (context) => Test(),

      },
    );
  }
}
